import {getlink} from "@/api/getapi.js"
export let homem={
    state: {
      arr:{}
      },
      mutations: {
        newdata(state,payload){
          state.arr=payload;
          // console.log(this.state.arr.products)
      }
      },
      actions: {
        actiondemoa(context,payload){
          getlink(payload.url).then((ok)=>{
            // console.log(payload.url,ok.data);
            context.commit("newdata",ok.data)
          }).catch((err)=>{
            console.log(err)
          })
        }
      },
}